<!-- Begin issues/cost.tpl -->
{opentable}
{titlebar colspan=4 title=$title}
<form method="post" action="?module=issues&action=cost&issues={$issues.issueid}">
<tr class="sectiontableheader" align="center">
	<td width="7%">{$lg->task}</td>
	<td width="30%" >{$lg->date}</td>
	<td width="25%">{$lg->user}</td>
	<td width="20%">{$lg->tcost}</td>

</tr>
{if is_array($t_datas)}
{foreach from=$t_datas item=s_datas}
{php}$class = rowcolor();{/php}
	
	<tr class="{php}print $class;{/php}" align="center">
		<td align="left"  width="5%">{$s_datas.ttask}</td>
		<td align="left"  width="5%">{$s_datas.mtime|userdate}</td>
		<td align="left"  width="5%">{username id=$s_datas.idusr}</td>
		{if ( ($s_datas.idusr eq $smarty.session.userid) and ($s_datas.mtime >= $debmth))
		  or is_manager($smarty.session.userid)}				
		<td align="left">
				<input type="text" size="5" name="{$s_datas.ttask}-{$s_datas.mtime}-{$s_datas.idusr}" value="{fcost value=$s_datas.cost}">
				<select name="D{$s_datas.ttask}-{$s_datas.mtime}-{$s_datas.idusr}" width = "10">
					<option value="1" >{$lg->timeH}</option>
					<option value="8" selected="selected">{$lg->timeD}</option>
				</select>
		</td>
		{else}
		<td align="left">{fcost value=$s_datas.cost} {$lg->timeD}</td>		
		{/if}
	</tr>
{/foreach}
	<tr>
		<td align="left"  colspan = "2"></td>
		<td align="right" class="sectiontableheader" colspan = "1">{$lg->total}</td>
		<td align="left" class="sectiontableheader" colspan = "1">{fcost value=$issues.tcost} {$lg->timeD}</td>				
	<tr>		
{else}
	<tr class="data"><td colspan="4">{$lg->no_data}</td></tr>
{/if}
<tr><td class="titlebar" colspan="2"><input type="submit" class="button" value="{$lg->update}"></td></tr>
</table>
<input type="hidden" name="commit" value="true">
<input type="hidden" name="issueid" value="{$issues.issueid}">
</form>
<!-- End issues/cost.tpl -->